package com.elai.tags.domain;

import java.util.Date;

import com.elai.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.elai.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 分群任务调度记录对象 base_user_group_task_detail
 * 
 * @author elai
 * @date 2021-07-30
 */
public class BaseUserGroupTaskDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 分组ID */
    @Excel(name = "分组ID")
    private Long groupId;

    /** 分组编号 */
    @Excel(name = "分组编号")
    private String groupCode;

    /** 分组名称 */
    @Excel(name = "分组名称")
    private String groupName;

    /** 执行批次 */
    @Excel(name = "执行批次")
    private String batchNo;

    /** 执行时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "执行时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date taskTime;

    /** 执行状态 */
    @Excel(name = "执行状态")
    private String taskStatus;

    /** 执行数量 */
    @Excel(name = "执行数量")
    private Integer resultNum;

    /** 执行时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "执行时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date resultTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGroupId(Long groupId) 
    {
        this.groupId = groupId;
    }

    public Long getGroupId() 
    {
        return groupId;
    }
    public void setGroupCode(String groupCode) 
    {
        this.groupCode = groupCode;
    }

    public String getGroupCode() 
    {
        return groupCode;
    }
    public void setGroupName(String groupName) 
    {
        this.groupName = groupName;
    }

    public String getGroupName() 
    {
        return groupName;
    }
    public void setBatchNo(String batchNo) 
    {
        this.batchNo = batchNo;
    }

    public String getBatchNo() 
    {
        return batchNo;
    }
    public void setTaskTime(Date taskTime) 
    {
        this.taskTime = taskTime;
    }

    public Date getTaskTime() 
    {
        return taskTime;
    }
    public void setTaskStatus(String taskStatus) 
    {
        this.taskStatus = taskStatus;
    }

    public String getTaskStatus() 
    {
        return taskStatus;
    }
    public void setResultNum(Integer resultNum) 
    {
        this.resultNum = resultNum;
    }

    public Integer getResultNum() 
    {
        return resultNum;
    }
    public void setResultTime(Date resultTime) 
    {
        this.resultTime = resultTime;
    }

    public Date getResultTime() 
    {
        return resultTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("groupId", getGroupId())
            .append("groupCode", getGroupCode())
            .append("groupName", getGroupName())
            .append("batchNo", getBatchNo())
            .append("taskTime", getTaskTime())
            .append("taskStatus", getTaskStatus())
            .append("resultNum", getResultNum())
            .append("resultTime", getResultTime())
            .toString();
    }
}
